var toString = Object.prototype.toString;

toString.call(new Date);
toString.call(new String);
toString.call(Math);
toString.call(/s/);
toString.call([]); 

//Since JavaScript 1.8.5
toString.call(undefined);
toString.call(null);